package com.ss.pj.sc10.service.feign;

import com.ss.pj.sc01.pojo.Order;
import com.ss.pj.sc01.vo.JsonResult;
import com.ss.pj.sc10.service.feign.fallback.OrderFeignServiceFB;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 叁昇
 * @create 2020-11-24-18:18
 */
@FeignClient(name = "order-service", fallback = OrderFeignServiceFB.class)
public interface OrderFeignService {
    @GetMapping("/{orderId}")
    JsonResult<Order> getOrder(@PathVariable String orderId);

    @GetMapping("/")
    JsonResult addOrder();
}
